projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
127bf36
)
Check if output file was opened before.
author
oliskoli
<oliskoli>
Thu, 24 Nov 2005 02:11:57 +0000
(
02:11
+0000)
committer
oliskoli
<oliskoli>
Thu, 24 Nov 2005 02:11:57 +0000
(
02:11
+0000)
ozi.c
patch
|
blob
|
history
diff --git
a/ozi.c
b/ozi.c
index b33d1f9172600fafbf7bfd864bf6d0fe7e9df0b4..3e2c919900952ed76918dcbfeb6a6f5c9dd0e5fe 100644
(file)
--- a/
ozi.c
+++ b/
ozi.c
@@
-310,8
+310,11
@@
wr_init(const char *fname)
static void
wr_deinit(void)
{
- fclose(file_out);
- file_out = NULL;
+ if (file_out != NULL) {
+
+ fclose(file_out);
+ file_out = NULL;
+ }
ozi_ofname = NULL;
mkshort_del_handle(&mkshort_handle);